package com.allwees.bs.c.module.product.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.allwees.bs.c.module.merchant.entity.StoreEntity;
import com.allwees.bs.core.model.product.entity.ProductModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;


@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "prod_product")
@TableName("prod_product")
public class ProductEntity extends ProductModel {

	private static final long serialVersionUID = -486562944431950636L;

	@Transient
	@TableField(exist=false)
	@JsonInclude(JsonInclude.Include.NON_NULL)
	private StoreEntity store;
}
